﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ContinuousTestation.PresenterFirstDSL
{
    public partial class PresenterFirstDSLRoot
    {
        public string GetParentNamespaceElementValue()
        {
            string[] nsTree = this.Namespace.Split(".".ToCharArray());
            int parentNSIndex = nsTree.Length - 1;
            if (parentNSIndex < 0) parentNSIndex = 0;
            return nsTree[parentNSIndex];
        }

        public string GetViewNameValue()
        {
            return this.ParentNamespaceElement + "View";
        }
    }
}
